package com.jlcindia.spring;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

public class JLCListener2 implements ApplicationListener<BatchEvent>{
	public void onApplicationEvent(BatchEvent event) {
		System.out.println("JLCListener2-onApplicationEvent()");
		System.out.println("BatchEvent is raised");
		BatchEvent be=(BatchEvent)event;
		Batch bat=be.getBatch();
		System.out.println(bat);
	}
}
